package ww;

import java.util.Scanner;
import www.Circle;

public class Cone {
	private Circle c;
	private double h;

	Cone(double R, double H) {
		h = H;
		c = new Circle(R);
	}

	public double geta() {
		Scanner reader = new Scanner(System.in);
		System.out.println("输入母线长");
		double l = reader.nextDouble();
		return c.getArea() + 3.14 * c.getR() * l;
	}

	public double getV() {
		return c.getArea() * h * 0.3;
	}
}
